﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudModels
{
    /// <summary>
    /// 传感实体
    /// </summary>
    public class SensorModelBase
    {
        /// <summary>
        /// 传感器id
        /// </summary>
        public int SensorId { get; set; }
        /// <summary>
        /// 网关id
        /// </summary>
        public int? GatewayId { get; set; }
        /// <summary>
        /// 传感器名称
        /// </summary>
        public string SensorName { get; set; }
        /// <summary>
        /// 根据网关协议：0表示Zigbee，1表示Modbus，2表示Rfid
        /// </summary>
        public int? ProtocolType { get; set; }
        /// <summary>
        /// 节点Pid/通道Id同一个网关下的通道/节点Id内部保持唯一性
        /// </summary>
        public int? PidOrChannelId { get; set; }
        /// <summary>
        /// zigbee序列号
        /// </summary>
        public string SerializeNum { get; set; }
        /// <summary>
        /// 传感标识
        /// </summary>
        public string SensorTag { get; set; }
        /// <summary>
        /// 传感器数据类型；
        /// </summary>
        public int? DataType { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 最大量程
        /// </summary>
        public decimal? MaxRangle { get; set; }
        /// <summary>
        /// 最小量程
        /// </summary>
        public decimal? MinRangle { get; set; }
        /// <summary>
        /// 进度
        /// </summary>
        public int? Precision { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 录入人员id
        /// </summary>
        public Guid? RegUserId { get; set; }
    }
}
